import request from '@/utils/request'
export function create(data) {
  return request({
    url: '/api/v1/EntrustOrderPrice/Create',
    method: 'post',
    data
  })
}
export function deleteRecord(data) {
  return request({
    url: '/api/v1/EntrustOrderPrice/Delete',
    method: 'delete',
    data
  })
}
export function CalculateEntrustPrice(data) {
  return request({
    url: '/api/v1/EntrustOrderPrice/CalculateEntrustPrice',
    method: 'get',
    params: data
  })
}

export function get(data) {
  return request({
    url: '/api/v1/EntrustOrderPrice/Get',
    method: 'get',
    params: data
  })
}

export function update(data) {
  return request({
    url: '/api/v1/EntrustOrderPrice/Update',
    method: 'post',
    data
  })
}

export function getList(data, pagination) {
  if (pagination) {
    data["pageIndex"] = pagination.pageIndex;
    data["pageSize"] = pagination.pageSize;
  }
  return request({
    url: '/api/v1/EntrustOrderPrice/GetFinishList',
    method: 'get',
    params: data
  })
}

export function getVerifyList(data, pagination) {
  if (pagination) {
    data["pageIndex"] = pagination.pageIndex;
    data["pageSize"] = pagination.pageSize;
  }
  return request({
    url: '/api/v1/EntrustOrderPrice/GetVerifyList',
    method: 'get',
    params: data
  })
}

export function UpdateDeleteFlag(data) {
  return request({
    url: '/api/v1/EntrustOrderPrice/UpdateDeleteStatus',
    method: 'post',
    data
  })
}
export function getDetectionItem(data) {
  return request({
    url: '/api/v1/EntrustOrderPrice/GetDetectionItemAgreementPriceByEntrustId',
    method: 'get',
    params: data
  })
}
export function entrustOrderPriceVerifyPass(data) {
  return request({
    url: '/api/v1/EntrustOrderPrice/EntrustOrderPriceVerifyPass',
    method: 'post',
    data
  })
}
export function entrustOrderPriceVerifyReject(data) {
  return request({
    url: '/api/v1/EntrustOrderPrice/EntrustOrderPriceVerifyReject',
    method: 'post',
    data
  })
}
